<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<meta charset="UTF-8"></meta>
<title>使用Thymeleaf模板引擎渲染web视图</title>
</head>
<body>
<!-- <h1>欢迎${user.username }光临!请选择你的操作:</h1><br></br>
    <ul>
        <shiro:hasPermission name="add"><li>增加</li></shiro:hasPermission>
        <shiro:hasPermission name="delete"><li>删除</li></shiro:hasPermission>
        <shiro:hasPermission name="update"><li>修改</li></shiro:hasPermission>
        <shiro:hasPermission name="query"><li>查询</li></shiro:hasPermission>
    </ul>
        <a href="/logOut">点我注销</a> -->
        
     <span shiro:authenticated="true" >
     	<span>欢迎您：<span th:text="${user.username}"></span>
     	<span shiro:hasPermission="add">增加</span>
     	<span shiro:hasPermission="delete">删除</span>
     	<span shiro:hasPermission="update">修改</span>
     	<span shiro:hasPermission="query">查询</span>
     </span>
     <a href="/logOut">点我注销</a>
</span>
</body>
</html>